1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module soup.ProxyURIResolverIF;
26 
27 private import gio.Cancellable;
28 private import glib.MainContext;
29 private import gobject.ObjectG;
30 private import soup.URI;
31 private import soup.c.functions;
32 public  import soup.c.types;
33 
34 
35 /** */
36 public interface ProxyURIResolverIF{
37 	/** Get the main Gtk struct */
38 	public SoupProxyURIResolver* getProxyURIResolverStruct(bool transferOwnership = false);
39 
40 	/** the main Gtk struct as a void* */
41 	protected void* getStruct();
42 
43 
44 	/** */
45 	public static GType getType()
46 	{
47 		return soup_proxy_uri_resolver_get_type();
48 	}
49 
50 	/**
51 	 * Asynchronously determines a proxy URI to use for @msg and calls
52 	 * @callback.
53 	 *
54 	 * Deprecated: #SoupProxyURIResolver is deprecated in favor of
55 	 * #GProxyResolver
56 	 *
57 	 * Params:
58 	 *     uri = the #SoupURI you want a proxy for
59 	 *     asyncContext = the #GMainContext to invoke @callback in
60 	 *     cancellable = a #GCancellable, or %NULL
61 	 *     callback = callback to invoke with the proxy address
62 	 *     userData = data for @callback
63 	 *
64 	 * Since: 2.26.3
65 	 */
66 	public void getProxyUriAsync(URI uri, MainContext asyncContext, Cancellable cancellable, SoupProxyURIResolverCallback callback, void* userData);
67 
68 	/**
69 	 * Synchronously determines a proxy URI to use for @uri. If @uri
70 	 * should be sent via proxy, *@proxy_uri will be set to the URI of the
71 	 * proxy, else it will be set to %NULL.
72 	 *
73 	 * Deprecated: #SoupProxyURIResolver is deprecated in favor of
74 	 * #GProxyResolver
75 	 *
76 	 * Params:
77 	 *     uri = the #SoupURI you want a proxy for
78 	 *     cancellable = a #GCancellable, or %NULL
79 	 *     proxyUri = on return, will contain the proxy URI
80 	 *
81 	 * Returns: %SOUP_STATUS_OK if successful, or a transport-level
82 	 *     error.
83 	 *
84 	 * Since: 2.26.3
85 	 */
86 	public uint getProxyUriSync(URI uri, Cancellable cancellable, out URI proxyUri);
87 }